package com.cwvs.utils;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;

public class ImageUtils {

	public static void createWordWatermark(InputStream f, String path)
			throws IOException {
		FileOutputStream out = new FileOutputStream(path);
		byte[] buffer = new byte[1024];
		int len = -1;
		while ((len = f.read(buffer)) != -1) {
			out.write(buffer, 0, len);
		}
		out.flush();
		f.close();
		out.close();
	}

}
